package org.jeecg.modules.car.service;


import org.jeecg.entity.basedata.BaseFloor;
import org.jeecg.entity.basedata.BaseRoom;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description: 房间
 * @Author: jeecg-boot
 * @Date: 2019-07-03
 * @Version: V1.0
 */
@FeignClient("CIM-BASEDATA")
public interface IBaseRoomService {

    @RequestMapping(value = "/api/basedata/getByRoomIds", method = RequestMethod.POST)
    List<BaseRoom> getByRoomIds(@RequestParam("roomIds") String[] roomIds, @RequestHeader("tenantId") String tenantId);

    @RequestMapping(value = "/api/basedata/getByCustomerId", method = RequestMethod.POST)
    String getByCustomerId(@RequestParam("roomId") String roomId, @RequestHeader("tenantId") String tenantId);

    @RequestMapping(value = "/api/basedata/getByTenantId", method = RequestMethod.POST)
    String getByTenantId(@RequestParam("roomId") String roomId, @RequestHeader("tenantId") String tenantId);

    @RequestMapping(value = "/api/basedata/getRoomById", method = RequestMethod.POST)
    BaseRoom getByRoomIds(@RequestParam("roomId") String roomId, @RequestHeader("tenantId") String tenantId);

    @RequestMapping(value = "/api/basedata/getByProjectIdName", method = RequestMethod.POST)
    BaseFloor getByProjectIdName(@RequestParam("projectId") String projectId,
                                 @RequestParam("name") String name,
                                 @RequestHeader("tenantId") String tenantId);

    @RequestMapping(value = "/api/basedata/getByFloorIdName", method = RequestMethod.POST)
    BaseRoom getByFloorIdName(@RequestParam("floorId") String floorId,
                                 @RequestParam("name") String name,
                                 @RequestHeader("tenantId") String tenantId);
}
